#include "hardware/hardware.h"

void hardware_init(void)
{
  setCpuFrequencyMhz(240);
  esp_task_wdt_init(50, true); 
  Serial.begin(115200);
  analogSetAttenuation(ADC_11db);  // 全局设置衰减（部分版本支持）
  analogSetWidth(12);

  wifi_setup();
  motor_setup();
  pressure_setup();
  tft_setup();
  quality_setup();
  ec11_setup();
  battery_setup();
  buzzer_setup();
}




